<ol class="breadcrumb">
	<li><a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'index'), null, true); ?>">Home</a></li>
	<li><a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'candidato'), null, true); ?>">Candidatos</a></li>
	<li><a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'eleicao'), null, true); ?>">Eleições</a></li>
	<li class="active">Alterar</li>
</ol>

<form method="post" class="form-horizontal" role="form">
    <?php echo $this->form->id; ?>
	<div class="form-group <?php echo isset($this->error['ano']) ? 'has-error' : ''; ?>">
		<label for="ano" class="col-sm-2 control-label">Ano</label>
		<div class="col-sm-4">
			<?php echo $this->form->ano; ?>
		</div>
		<?php if (isset($this->error['ano'])): ?><label class="control-label"><?php echo current($this->error['ano']); ?></label><?php endif; ?>
	</div>
	<div class="form-group <?php echo isset($this->error['descricao']) ? 'has-error' : ''; ?>">
		<label for="descricao" class="col-sm-2 control-label">Descrição</label>
		<div class="col-sm-4">
			<?php echo $this->form->descricao; ?>
		</div>
		<?php if (isset($this->error['descricao'])): ?><label class="control-label"><?php echo current($this->error['descricao']); ?></label><?php endif; ?>
	</div>
	<div class="form-group">
		<div class="col-sm-offset-2 col-sm-4">
			<button type="submit" class="btn btn-success">salvar</button>
		</div>
	</div>
</form>